import { BaseModel } from '@/common/base/base.model';
import { Column, Entity } from 'typeorm';
import { PresetSegmentFreqItem, TargetItem } from "@/module/global-config/global-config.dto";

@Entity('GLOBAL_CONFIG', {
  synchronize: false,
}) // 全局业务配置
export class GlobalConfigModel extends BaseModel {
  @Column({
    comment: 'target数据集合',
    type: 'json',
    default: [],
  })
  targets: TargetItem[];

  @Column({
    comment: '预设分段频率数据集合',
    type: 'json',
    default: [],
  })
  presetSegmentFreq: PresetSegmentFreqItem[];

  @Column({
    comment: '敏感词',
    type: 'varchar',
    length: 999999,
    default: '',
  })
  sensitive: string;
}
